# coding:utf-8
'''
Created on 2010-1-8

@author: Jason Green
@author-email: guileen@gmail.com
'''
from django.conf.urls.defaults import patterns, include
from os import path

STATIC_DOC_ROOT = path.normpath(path.join(path.dirname(__file__),"../../contrib/generic/static/"))

urlpatterns = patterns('',
    (r'^$', 'django.views.generic.simple.direct_to_template', {'template': 'index.html'}),
    (r'^accounts/',include('django.contrib.auth.urls')),
    (r'^static/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': STATIC_DOC_ROOT, 'show_indexes':True }),
    (r'^i18n/',include('djangosnippets.conf.urls.i18n')),
    (r'^', include('djangosnippets.contrib.generic.urls')),
    
)
